package com.jbm.jbmsupplier.util;

import java.io.Serializable;

/**
 * Created by lyh on 2017-03-22.
 */


public class OtherconfigEntity extends com.jbm.jbmsupplier.util.ICtrl implements Serializable {
    private static final long serialVersionUID = 9118151461515393805L;
    private int id;
    private String value;
    private Integer type;
     public   OtherconfigEntity(){}
    public   OtherconfigEntity(String method,Integer type,String value)
    {
        this.method=method;
        this.type=type;
        this.value=value;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }


    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }


    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        OtherconfigEntity that = (OtherconfigEntity) o;

        if (id != that.id) return false;
        if (type != null ? !type.equals(that.type) : that.type != null) return false;
        if (value != null ? !value.equals(that.value) : that.value != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = id;
        result = 31 * result + (value != null ? value.hashCode() : 0);
        result = 31 * result + (type != null ? type.hashCode() : 0);
        return result;
    }
}
